package com.luych.toolbox.base.service.service;

import com.luych.toolbox.base.service.dao.PermissionDao;
import com.luych.toolbox.base.service.entity.Permission;
import com.luych.toolbox.common.feign.param.base.service.PermissionParam;
import com.luych.toolbox.common.feign.view.base.service.PermissionView;
import com.luych.toolbox.common.service.base.BaseConvert;
import com.luych.toolbox.common.service.base.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PermissionService extends BaseService<PermissionView, PermissionParam, Permission> {

    private static final BaseConvert<PermissionParam, Permission> permissionParamToEntity = Permission::new;
    private static final BaseConvert<Permission, PermissionView> permissionEntityToView = PermissionView::new;

    @Autowired
    public PermissionService(PermissionDao permissionDao) {
        super(permissionDao, permissionParamToEntity, permissionEntityToView);
    }
}
